﻿#include "dialog.h"
#include "ui_dialog.h"
#include <QVBoxLayout>


Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Dialog)
{
    ui->setupUi(this);
    textEdit = new TextEdit(this);

    // 设置自定义属性
    textEdit->setTransparentBorder(true);
    textEdit->setBackgroundColor(QColor("#ffffff"));
    textEdit->setBorderRadius(10);
    textEdit->setTextFont(QFont("Arial", 14));
    textEdit->setTextColor(QColor("#1e9fff"));
    textEdit->setTextSize(14);
    QVBoxLayout *lay = new QVBoxLayout(this);
    lay->addWidget(textEdit);

    this->setLayout(lay);
    textEdit->show();
}

Dialog::~Dialog()
{
    delete ui;
}

